﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RayD.Core
{
    /// <summary>
    /// 缓存移除（当进行增删改时需要贴上此标签清除缓存数据）
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
    public class RemoveCacheAttribute : Attribute
    {
        public RemoveCacheAttribute()
        {

        }
        /// <summary>
        /// 额外要移除的缓存键
        /// </summary>
        public string customCacheKey = string.Empty;
        public RemoveCacheAttribute(string CustomCacheKey)
        {
            this.customCacheKey = CustomCacheKey;
        }
    }
}
